package com.teamcooperation.service;

import com.teamcooperation.mapper.UserMapper;
import com.teamcooperation.vo.T_user;
import io.swagger.annotations.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Api(tags = "用户层")
@Service
public class UserService {
    @Resource
    private UserMapper userMapper;
    @ApiOperation(value="用户登录",notes="输入用户名密码")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "username",value = "用户名",required = true),
            @ApiImplicitParam(name = "password",value = "用户名密码",required = true)
    })
    public List<T_user> userlogin(String username,String password){return userMapper.userlogin(username,password);};
}
